package com.hxh.area.vo;

import lombok.Data;

/**
 * @author huangxunhui
 * Date: Created in 2021/8/15 22:32
 * Utils: IntelliJ IDEA
 */
@Data
public class ResultVo {

    /**
     * 错误码
     */
    private Integer code;

    /**
     * 提示信息
     */
    private String message;

    /**
     * 具体的内容
     */
    private Object data;

    public static ResultVo success(Object object) {
        ResultVo result = new ResultVo();
        result.setCode(0);
        result.setMessage("success");
        result.setData(object);
        return result;
    }

}
